/*
 * Copyright 2017 Alexander Pustovalov
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

body * {
    position: relative;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-size: 12px;
    font-weight: normal;
    font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

#content {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.umy-logo {
    width: 25em;
    height: 25em;
    background: url(img/umylogo-white.svg);
    background-size: 25em 25em;
}

.umy-grid-text-editable {
    position: absolute;
    min-width: 20em;
    top: -2px;
    left: -2px;
    padding: 2px;
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #ffffff;
    color: #000000;
    outline: 1px solid #f0ad4e;
    z-index: 1010;
    width: 100%;
}

.umy-treeview-list {
    line-height: 22px;
    font-size: 14px;
    border-left: 1px solid #cdcdcd;
    -webkit-padding-start: 0;
    padding: 0 0 0 1em;
    list-style: none;
    display: inline-block;
}

.umy-treeview-list-selected {
    border: 0;
    line-height: 22px;
    -webkit-padding-start: 0;
    padding: 0 0 0 1em;
    list-style: none;
    display: inline-block;
}

.umy-treeview-list-item {
    position: relative;
    padding-left: 3px;
    white-space: nowrap;
    font-size: 14px;
    letter-spacing: 0;
}

.umy-treeview-list-item-selected {
    border: 1px solid #35b3ee;
    background-color: rgba(54, 194, 255, 0.11);
    border-radius: 3px;
    position: relative;
    padding-left: 3px;
    white-space: nowrap;
    font-size: 14px;
    letter-spacing: 0px;
}

.umy-treeview-list-item-for-copying {
    border: 1px dashed #5cb85c;
    background-color: rgba(81, 179, 77, 0.11);
    border-radius: 3px;
    position: relative;
    padding-left: 3px;
    white-space: nowrap;
    font-size: 14px;
    letter-spacing: 0px;
}

.umy-treeview-list-item-for-cutting {
    border: 1px dashed #f0ad4e;
    background-color: rgba(237, 162, 61, 0.11);
    border-radius: 3px;
    position: relative;
    padding-left: 3px;
    white-space: nowrap;
    font-size: 14px;
    letter-spacing: 0px;
}

.umy-treeview-list-item-link {
    color: #f0ad4e;
}

.umy-treeview-list-item-link-placeholder {
    border: 1px solid #f0ad4e;
    padding: 2px;
    border-radius: 3px;
}

.umy-treeview-list-item-link-placeholder:before {
    content: " ";
    position: absolute;
    top: 0;
    left: -1em;
    width: 1em;
    height: 1em;
    padding: 0;
    margin: 0;
    border: 1px solid #f0ad4e;
    background-color: #fcf8e3;
    border-radius: 50%;
    color: #cccccc;
}

.umy-treeview-list-item-empty {
    padding-left: 3px;
    white-space: nowrap;
}

.umy-treeview-list-placeholder-terminator {
    position: relative;
    width: 1em;
    height: 1em;
    padding: 0;
    margin: 0;
    /*border: 1px solid #f0ad4e;*/
    /*background-color: #fcf8e3;*/
    /*border-radius: 50%;*/
    color: #f0ad4e;;
    /*top: -3px;*/
    left: 0;
    cursor: pointer;
    /*box-shadow: 0 2px 2px rgba(255, 255, 255, 0.9);*/
    /*text-align: center;*/
    /*z-index: 50;*/
}

.umy-modal-overlay {
    z-index: 9055;
}

.umy-modal-middlesize {
    width: 500px;
}

.treeview-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1000;
    cursor: pointer;
}

.treeview-placeholder-base {
    margin: 0;
    padding: 0;
    position: relative;
    height: 1px;
    right: 1px;
}

.treeview-placeholder-line {
    display: none;
    margin: 0;
    padding: 0;
    height: 0;
    border-top: 1px dotted #999;
    width: 200px;
    position: absolute;
    top: 0;
    left: 0.5em;
}

.treeview-placeholder-icon {
    position: absolute;
    font-size: .7em;
    top: -.4em;
    left: -.4em;
    width: 1em;
    height: 1em;
    z-index: 1000;
    display: none;
}

.treeview-placeholder-circle {
    position: absolute;
    top: -.4em;
    left: -.4em;
    width: .8em;
    height: .8em;
    border-radius: 50%;
    /*background-color: rgba(240, 173, 78, 0.1);*/
    border: 1px solid rgba(205, 205, 205, 0.5);
}

.treeview-placeholder-bar {
    position: absolute;
    top: -.4em;
    left: -.4em;
    width: 2em;
    height: .8em;
    border-radius: 0.3em;
    /*background-color: rgba(240, 173, 78, 0.1);*/
    border: 1px solid rgba(205, 205, 205, 0.5);
}

.treeview-placeholder:hover > .treeview-placeholder-base > .treeview-placeholder-circle {
    top: -.6em;
    left: -.6em;
    width: 1.2em;
    height: 1.2em;
    border: 1px solid #999;
    background-color: rgb(240, 173, 78);
}

.treeview-placeholder:hover > .treeview-placeholder-base > .treeview-placeholder-bar {
    top: -.6em;
    left: -.6em;
    height: 1.2em;
    border: 1px solid #999;
    background-color: rgb(240, 173, 78);
}

.treeview-placeholder:hover > .treeview-placeholder-base > .treeview-placeholder-line {
    display: block;
}

.treeview-placeholder:hover > .treeview-placeholder-base > .treeview-placeholder-icon {
    display: block;
}

.treeview-panel-button {
    opacity: 0.7;
}

.treeview-panel-button:hover {
    opacity: 1;
}

.dimension-box {
    position: relative;
    border: 1px solid #fff;
    border-radius: 4px;
    padding: 20px;
}

.dimension-position {
    background-color: #dff0d8;
}

.dimension-margin {
    background-color: #d9edf7;
}

.dimension-border {
    background-color: #fcf8e3;
}

.dimension-padding {
    background-color: #f2dede;
}

.dimension-center {
    background-color: #ffffff;
    width: 100%;
    height: 40px;
}

.dimension-btn {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: transparent;
    color: #ffffff;
    border-radius: 50%;
    padding: 2px;
    font-size: 9px;
    text-align: center;
    vertical-align: middle;
    font-weight: 100;
    cursor: pointer;
    z-index: 5;
}

.dimension-btn:hover {
    background-color: #35b3ee;
    color: #ffffff;
}

.dimension-btn-inner {
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.dimension-border-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    bottom: 0;
    background-color: transparent;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.dimension-border-left:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dimension-border-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background-color: transparent;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.dimension-border-top:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dimension-border-right {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background-color: transparent;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.dimension-border-right:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dimension-border-bottom {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    height: 20px;
    background-color: transparent;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.dimension-border-bottom:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.rotate-clockwise {
    /* Safari */
    -webkit-transform: rotate(90deg);
    /* Firefox */
    -moz-transform: rotate(90deg);
    /* IE */
    -ms-transform: rotate(90deg);
    /* Opera */
    -o-transform: rotate(90deg);

    transform: rotate(90deg);
    display: inline-block;
    vertical-align: top;
    margin: .2em 0 0 0;
}

.mouse-center-point {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
}
